package HeapCreate;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2024-03-27
 * Time: 21:40
 */
public class HeapTest {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        Heap heap = new Heap();
        heap.initElem(array);
        heap.createBigHeap();
        System.out.println("=========");
       /* heap.createSmallHeap();
        System.out.println("============");*/
       /* heap.offer(90);
        System.out.println("============");*/
        heap.heapSort();
        System.out.println("=======");
    }
}
